package com.study.string;

public class StringDemo02 {
    public static void main(String[] args) {

       // 方式一
        String name = "桥本环奈";
        System.out.println(name);
        // 方式二
        String name2 = new String();
        System.out.println(name2);
        String name3 = new String("大岛优子");
        System.out.println(name3);
        // 方式三
        char[] chas = {'芳','岛','川','子'};
        String name4 = new String(chas);
        System.out.println(name4);
        // 方式四
        byte[] bytes = {98,99,100,101};
        String name5 = new String(bytes);
        System.out.println(name5);

    }
}
